//    Copyright (c) 2009 Elwyn Malethan
//
//    This file is part of SeemoreJ.
//
//    SeemoreJ is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    SeemoreJ is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with SeemoreJ.  If not, see <http://www.gnu.org/licenses/>.

package com.malethan.seemorej.hibernate.dao;

import com.malethan.seemorej.dao.ValidationMessage;
import org.hibernate.validator.InvalidValue;

public class ValidationMessageHibernate implements ValidationMessage {
    //----------------------------------------------------------------------- Static Properties and Constants
    //----------------------------------------------------------------------- Static Methods
    //----------------------------------------------------------------------- Instance Properties

    InvalidValue invalidValue;

    //----------------------------------------------------------------------- Constructors

    public ValidationMessageHibernate(InvalidValue invalidValue) {
        this.invalidValue = invalidValue;
    }

    //----------------------------------------------------------------------- Getters and Setters
    //----------------------------------------------------------------------- Instance Methods

    public Object getRootBean() {
        return invalidValue.getRootBean();
    }

    public String getPropertyPath() {
        return invalidValue.getPropertyPath();
    }

    public void addParentBean(Object o, String s) {
        invalidValue.addParentBean(o, s);
    }

    public Class getBeanClass() {
        return invalidValue.getBeanClass();
    }

    public String getMessage() {
        return invalidValue.getMessage();
    }

    public String getPropertyName() {
        return invalidValue.getPropertyName();
    }

    public Object getValue() {
        return invalidValue.getValue();
    }

    public Object getBean() {
        return invalidValue.getBean();
    }
}
